﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace BarManager.Core.Entity
{
    [DataContract]
    public class Zona
    {
        [DataMember]
        public int Id { get; set; }

        [Required]
        [StringLength(150)]
        [DataMember]
        public string Descripcion { get; set; }
         
        [DataMember]
        public bool Habilitada { get; set; }

        [DataMember]
        public virtual ICollection<Mesa> Mesas { get; set; }

        public Zona()
        {
            this.Habilitada = true;
        }
    }
}
